<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
	</body>
	<script type="text/javascript">
		var arr = [1,2,3,55,78,90,"小明"];
		
		var x = arr.indexOf(6);
		if(x==-1){
			alert("数组中没有");
		}else{
			arr.splice(x,1)
		}
		
		console.log(arr)
		
	</script>
</html>
